export default {
  tree_vat_product: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.vat.product',
    type: 'tree',
    buttons: { create: false, edit: false, delete: false },
    fields: {
      parent_id: { string: '上级' },
      child_id: { string: '下级' },
      name: { string: '名称' },
      code: { string: '编码' },
      shortname: { string: '简称' },
      ratio_str: { string: '税率' },
      grouped: { string: '组标志' },
      note: { string: '备注' }
    }
  },

  form_vat_product: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.vat.product',
    type: 'form',
    buttons: { create: false, edit: false, delete: false },
    fields: {
      parent_id: { string: '上级' },
      child_id: { string: '下级' },
      name: { string: '名称' },
      code: { string: '编码' },
      shortname: { string: '简称' },
      ratio_str: { string: '税率' },
      grouped: { string: '组标志' },
      note: { string: '备注' }
    }
  },

  action_vat_product: {
    _odoo_model: 'ir.actions',
    name: '税收分类',
    type: 'ir.actions.act_window',
    res_model: 'fp.vat.product',
    domain: [],
    context: {},
    views: {
      tree: 'tree_vat_product',
      form: 'form_vat_product'
    }
  }
}
